package com.new_blog.service.impl;

import com.new_blog.model.Userinfo;
import com.new_blog.mapper.UserinfoMapper;
import com.new_blog.model.vo.UserInfoVo;
import com.new_blog.service.UserinfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author TQ02
 * @since 2024-03-21
 */
@Service
public class UserinfoServiceImpl extends ServiceImpl<UserinfoMapper, Userinfo> implements UserinfoService {

    @Autowired
    private UserinfoMapper user;
    @Override
    public List<Userinfo> getUserAll() {
        return user.getUserAll();
    }

    @Override
    public UserInfoVo getUser(String uId) {
        return user.getUser(uId);
    }

    @Override
    public int changepd(String uId, String password2) {
        return user.changepd(uId,password2);
    }
}
